// 进度预警导出
import request from '@/utils/request'
import { commonBaseUrl } from '@/utils'

const moduleName = commonBaseUrl('A')

// 获取省分
export function getProvinceInfo() {
    return request({
        url: moduleName + 'api/attachment/export/getProvinceInfo',
        method: 'get',
        showLoading: true,
    })
}
//根据省分查询地市
export function getCityInfo(data) {
    return request({
        url: moduleName + 'api/attachment/export/getCityInfo?province='+data,
        method: 'get',
        showLoading: false,
    })
}
//获取业务类型、建设方式
export function getDictCascade(data) {
    return request({
        url: moduleName + 'api/attachment/export/getDictCascade',
        method: 'post',
        data
    })
}

//查询列表
export function queryExportList(data) {
    return request({
        url: moduleName + 'api/attachment/export/queryExport',
        method: 'post',
        showLoading: true,
        data
    })
}

//导出
export function asyncEarlyExport(data) {
    return request({
        url: moduleName + 'api/attachment/export/asyncEarlyExport',
        method: 'post',
        showLoading: true,
        data
    })
}